package ChrisC;
import org.uispec4j.Button;
import org.uispec4j.Table;
import org.uispec4j.UISpecTestCase;
import org.uispec4j.Window;

public class LoginWindowTest extends UISpecTestCase {
	
	
	public void testLogin() throws Exception {
		  // 1. Retrieve the components
		  Window window = getMainWindow();
		  Table table = window.getTable();
		  Button newLoginButton = window.getButton("Login");
		  Button newSingUpButton = window.getButton("SignUp");
		  
		  
		  newLoginButton.click();
		  window.getTextBox("username").setText("TestUser");
		  window.getTextBox("pass").setText("12345");
		  assertTrue((window.getTextBox("username").equals("TestUser")&&
				  window.getTextBox("pass").equals("12345")));
		  
		  
	   
	  
	  
	}
}
